package com.sixth.controller;

import com.sixth.entity.Course;
import com.sixth.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: self-tui-education
 * @description:
 * @author: 高振杨
 * @create: 2022-05-06 15:55
 **/
@RestController
@RequestMapping("/core/course")
public class CourseController {
    @Autowired
    private CourseService courseService;

    @PostMapping("/selectCourseById/{courseId}")
    public Course selectCourseById(@PathVariable String courseId){
        return courseService.selectCourseById(courseId);
    }
}
